package com.kaili.basic.pojo.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * @author:lsw
 * @Time: 19-7-23 下午8:15
 * @Copyright: ©  杭州凯立通信有限公司 版权所有
 * @Warning: 本内容仅限于公司内部传阅, 禁止外泄或用于其它商业目的
 */
@Document(collection="t_sys_login_log")
@Data
@ApiModel(description = "系统登陆日志")
public class SysLoginLogEntity {
    @Id
    @ApiModelProperty("日志id")
    private String id;

    @ApiModelProperty("帐号")
    @Excel(name = "帐号",orderNum = "1")
    private String userName;

    @ApiModelProperty("姓名")
    @Excel(name = "姓名",orderNum = "2")
    private String name;

    @ApiModelProperty("所属机构")
    @Excel(name = "所属机构",orderNum = "3")
    private String organ;

    @ApiModelProperty("角色")
    @Excel(name = "角色",orderNum = "4")
    private String roleName;

    @ApiModelProperty("登录时间")
    @Excel(name = "登录时间",orderNum = "5",exportFormat="yyyy-MM-dd HH:mm:ss")
    private Date loginTime;

    @ApiModelProperty("退出时间")
    @Excel(name = "退出时间",orderNum = "6",exportFormat="yyyy-MM-dd HH:mm:ss")
    private Date logoutTime;

    @ApiModelProperty("登录地址")
    @Excel(name = "登录地址",orderNum = "7")
    private String loginAddress;

    @ApiModelProperty("登录方式")
    @Excel(name = "登录方式",orderNum = "8")
    private String loginType;

    @ApiModelProperty("登录终端名")
    @Excel(name = "登录终端名",orderNum = "9")
    private String deriveName;

    @ApiModelProperty("IP地址")
    @Excel(name = "IP地址",orderNum = "10")
    private String ipv4;
}
